package com.example.algorithm.no0042;

import java.util.Arrays;

import com.example.algorithm.no0042.solution.DoublePointSolutionImpl;

/**
 * @Description 解答测试
 * @ClassName SolutionTest
 * @Author Administrator
 * @Date 2020/5/16 12:54
 * @Version 1.0.0
 */
public class SolutionTest {

    // 6
    static int[] height = new int[]{0, 1, 0, 2, 1, 0, 1, 3, 2, 1, 2, 1};

//    // 9
//    static int[] height = new int[]{4, 2, 0, 3, 2, 5};

    public static void main(String[] a1rgs) {
        System.out.println("输入数组为: " + Arrays.toString(height));

//        Solution solution = new DpSolution();
        Solution solution = new DoublePointSolutionImpl();

        System.out.println("输出: " + solution.trap(height));

    }
}
